#include "PzsSimplePizzaFactory.h"

SimplePizzaFactory::SimplePizzaFactory()
{

}

std::shared_ptr<Pizza> SimplePizzaFactory::createPizza(string type)
{
    std::shared_ptr<Pizza> pPizza;

    if(type == "cheese") {
        std::shared_ptr<Pizza> cheesePz(new CheesePizza());
        pPizza = std::move(cheesePz);
    } else if(type == "pepperoni") {
        std::shared_ptr<Pizza> pepperoniPz(new PzsPepperoniPizza());
        pPizza = std::move(pepperoniPz);
    } else if(type == "veggie") {
        std::shared_ptr<Pizza> veggiePz(new VeggiePizza());
        pPizza = std::move(veggiePz);
    }

    return pPizza;
}
